package io.chenglicun.modules.clc.service;

import io.chenglicun.common.service.CrudService;
import io.chenglicun.modules.clc.dto.ClcQuestionAnswerDTO;
import io.chenglicun.modules.clc.entity.ClcQuestionAnswerEntity;

import java.util.List;

/**
 * 题目答案
 *
 * @author HB 137664951@qq.com
 * @since 1.0 2023-10-18
 */
public interface ClcQuestionAnswerService extends CrudService<ClcQuestionAnswerEntity, ClcQuestionAnswerDTO> {

    List<ClcQuestionAnswerDTO> getListByQuestionId(Long ...questionIds);

    List<ClcQuestionAnswerDTO> getByIds(Long ...ids);

    void saveBatch(List<ClcQuestionAnswerDTO> dtos);

    void deleteByQuestionIds(Long ...questionIds);

    Integer getMaxSort();
}